home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / dev / basic / hsb_reqt_inc.lha / hsb_reqt_inc / bh / reqtools.bc next >
Text File  |  1997-04-21  |  13KB  |  351 lines

  1. ' basic-constants for reqtools
  2.  
  3. ' $UNDERLINES
  4.  
  5. CONST RTPREF_FILEREQ& = 0
  6. CONST RTPREF_PALETTEREQ& = 2
  7. CONST RTPREF_SCREENMODEREQ& = 3
  8. CONST RTPREF_VOLUMEREQ& = 4
  9. CONST RTPREF_OTHERREQ& = 5
  10. CONST RTPREF_NR_OF_REQ& = 6
  11. 'STRUCTURE ReqDefaults,0
  12. CONST rtrd_Size% = 0
  13. CONST rtrd_ReqPos% = 4
  14. CONST rtrd_LeftOffset% = 8
  15. CONST rtrd_TopOffset% = 10
  16. CONST rtrd_MinEntries% = 12
  17. CONST rtrd_MaxEntries% = 14
  18. CONST ReqDefault_sizeof% = 16
  19. CONST RTPR_DIRSFIRST& = 0
  20. CONST RTPR_DIRSMIXED& = 1
  21. CONST RTPR_IMMSORT& = 2
  22. CONST RTPR_NOSCRTOFRONT& = 3
  23. 'Requesttypes for rtAllocRequest()
  24. CONST RT_FILEREQ& = 0
  25. CONST RT_REQINFO& = 1
  26. CONST RT_FONTREQ& = 2
  27. CONST RT_SCREENMODEREQ& = 3
  28. 'Filerequester, structure _MUST_ be allocated with rtAllocRequest()
  29. CONST rtfi_ReqPos% = 0
  30. CONST rtfi_LeftOffset% = 4
  31. CONST rtfi_TopOffset% = 6
  32. CONST rtfi_Flags% = 8
  33. CONST rtfi_private1% = 12
  34. CONST rtfi_Dir% = 16            ' READ ONLY! Change with rtChangeReqAttrA()!
  35. CONST rtfi_MatchPat% = 20       ' READ ONLY! Change with rtChangeReqAttrA()!
  36. CONST rtfi_DefaultFont% = 24
  37. CONST rtfi_WaitPointer% = 28
  38. CONST rtfi_LockWindow% = 32
  39. CONST rtfi_ShareIDCMP% = 36
  40. CONST rtfi_reserved1% = 40
  41. CONST rtfi_reserved2% = 42
  42. CONST rtfi_reserved3% = 44
  43. CONST rtfi_ReqHeight% = 46      ' READ ONLY!  Use RTFI_Height tag!
  44. '                                    Lots of private data follows! HANDS OFF :-)
  45. ' returned by rtFileRequestA() if multiselect is enabled,
  46. ' free list with rtFreeFileList()
  47. CONST rtfl_Next% = 0
  48. CONST rtfl_StrLen% = 4
  49. CONST rtfl_Name% = 8
  50. CONST rtFileList_sizeof% = 12
  51. ' structure passed to RTFI_FilterFunc callback hook by
  52. ' volume requester (see RTFI_VolumeRequest tag)
  53. ' STRUCTURE rtVolumeEntry,0
  54. CONST rtve_Type% = 0           ' DLT_DEVICE OR DLT_DIRECTORY
  55. CONST rtve_Name% = 4
  56. CONST rtVolumeEntry_sizeof% = 8
  57. ' Font requester, structure _MUST_ be allocated with rtAllocRequest()
  58. CONST rtfo_ReqPos% = 0
  59. CONST rtfo_LeftOffset% = 4
  60. CONST rtfo_TopOffset% = 6
  61. CONST rtfo_Flags% = 8
  62. CONST rtfo_private1% = 12
  63. CONST rtfo_Attr% = 16
  64. CONST rtfo_DefaultFont% = 20
  65. CONST rtfo_WaitPointer% = 24
  66. CONST rtfo_LockWindow% = 28
  67. CONST rtfo_ShareIDCMP% = 32
  68. CONST rtfo_reserved1% = 36
  69. CONST rtfo_reserved2% = 38
  70. CONST rtfo_reserved3% = 40
  71. CONST rtfo_ReqHeight% = 42     ' READ ONLY!  Use RTFO_Height tag!
  72. '                                 Lots of private data follows! HANDS OFF :-)
  73. '  ScreenMode requester, structure _MUST_ be allocated with rtAllocRequest()
  74. CONST rtsc_ReqPos% = 0
  75. CONST rtsc_LeftOffset% = 4
  76. CONST rtsc_TopOffset% = 6
  77. CONST rtsc_Flags% = 8
  78. CONST rtsc_private1% = 12
  79. CONST rtsc_DisplayID% = 16      ' READ ONLY!
  80. CONST rtsc_DisplayWidth% = 20   ' READ ONLY!
  81. CONST rtsc_DisplayHeight% = 22  ' READ ONLY!
  82. CONST rtsc_DefaultFont% = 24
  83. CONST rtsc_WaitPointer% = 28
  84. CONST rtsc_LockWindow% = 32
  85. CONST rtsc_ShareIDCMP% = 36
  86. CONST rtsc_IntuiMsgFunc% = 40
  87. CONST rtsc_reserved1% = 44
  88. CONST rtsc_reserved2% = 46
  89. CONST rtsc_reserved3% = 48
  90. CONST rtsc_ReqHeight% = 50      ' READ ONLY!  Use RTSC_Height tag!
  91. CONST rtsc_DisplayDepth% = 52   ' READ ONLY!
  92. CONST rtsc_OverscanType% = 54   ' READ ONLY!
  93. CONST rtsc_AutoScroll% = 56     ' READ ONLY!
  94. '                                  Lots of private data follows! HANDS OFF :-)
  95. ' Requester Info for rtEZRequestA(), rtGetLongA(), rtGetStringA() and rtPaletteRequestA(),
  96. ' _MUST_ be allocated with rtAllocRequest()
  97. CONST rtri_ReqPos% = 0
  98. CONST rtri_LeftOffset% = 4
  99. CONST rtri_TopOffset% = 6
  100. CONST rtri_Width% = 8           ' NOT FOR rtEZRequestA()
  101. CONST rtri_ReqTitle% = 12       ' currently only FOR rtEZRequestA()
  102. CONST rtri_Flags% = 16
  103. CONST rtri_DefaultFont% = 20    ' currently only FOR rtPaletteRequestA()
  104. CONST rtri_WaitPointer% = 24
  105. CONST rtri_LockWindow% = 28
  106. CONST rtri_ShareIDCMP% = 32
  107. CONST rtri_IntuiMsgFunc% = 36
  108. '                                  structure may be extended in future
  109. '  Handler Info for rtReqHandlerA(), will be allocated for you when you use
  110. '  the RT_ReqHandler tag, never try to allocate this yourself!
  111. CONST rtHandlerInfo% = 0        ' first longword IS private!
  112. CONST rthi_WaitMask% = 4
  113. CONST rthi_DoNotWait% = 8
  114. '                                 Private data follows, HANDS OFF :-)
  115. ' possible return codes from rtReqHandlerA()
  116. CONST CALL_HANDLER& = &H80000000
  117. '  TAGS ***************************************
  118. CONST RT_TagBase& = &H80000000
  119. ' optional pointer to window
  120. CONST RT_Window& = &H80000001
  121. ' idcmp flags requester should abort on (useful for IDCMP_DISKINSERTED)
  122. CONST RT_IDCMPFlags& = &H80000002
  123. ' position of requester window (see below) - default REQPOS_POINTER
  124. CONST RT_ReqPos& = &H80000003
  125. ' leftedge offset of requester relative to position specified by RT_ReqPos
  126. CONST RT_LeftOffset& = &H80000004
  127. ' topedge offset of requester relative to position specified by RT_ReqPos
  128. CONST RT_TopOffset& = &H80000005
  129. ' name of public screen to put requester on (use on Kickstart 2.0 only!)
  130. CONST RT_PubScrName& = &H80000006
  131. ' address of screen to put requester on
  132. CONST RT_Screen& = &H80000007
  133. ' additional signal mask to wait on
  134. CONST RT_ReqHandler& = &H80000008
  135. ' font to use when screen font is rejected, _MUST_ be fixed-width font!
  136. ' (struct TextFont *, not struct TextAttr *!)
  137. ' - default GfxBase->DefaultFont
  138. CONST RT_DefaultFont& = &H80000009
  139. ' boolean to set the standard wait pointer in window - default FALSE
  140. CONST RT_WaitPointer& = &H8000000A
  141. ' (V38) char preceding keyboard shortcut characters (will be underlined)
  142. CONST RT_Underscore& = &H8000000B
  143. ' (V38) share IDCMP port with window - default FALSE
  144. CONST RT_ShareIDCMP& = &H8000000C
  145. ' (V38) lock window and set standard wait pointer - default FALSE
  146. CONST RT_LockWindow& = &H8000000D
  147. ' (V38) boolean to make requester's screen pop to front - default TRUE
  148. CONST RT_ScreenToFront& = &H8000000E
  149. ' (V38) Requester should use this font - default: screen font
  150. CONST RT_TextAttr& = &H8000000F
  151. ' (V38) call this hook for every IDCMP message not for requester
  152. CONST RT_IntuiMsgFunc& = &H80000010
  153. ' (V38) Locale ReqTools should use for text
  154. CONST RT_Locale& = &H80000011
  155. '** tags specific to rtEZRequestA ***
  156. ' title of requester WINDOW - english default "Request" OR "Information"
  157. CONST RTEZ_ReqTitle& = &H80000014
  158. ' (RT_TagBase+21) reserved
  159. ' various flags (see below)
  160. CONST RTEZ_Flags& = &H80000016
  161. ' default response (activated by pressing RETURN) - default TRUE
  162. CONST RTEZ_DefaultResponse& = &H80000017
  163. '** tags specific to rtGetLongA ***
  164. ' minimum allowed value - default MININT
  165. CONST RTGL_Min& = &H8000001E
  166. ' maximum allowed value - default MAXINT
  167. CONST RTGL_Max& = &H8000001F
  168. ' suggested width of requester window (in pixels)
  169. CONST RTGL_Width& = &H80000020
  170. ' boolean to show the default value - default TRUE
  171. CONST RTGL_ShowDefault& = &H80000021
  172. ' (V38) string with possible responses - english default " _Ok |_Cancel"
  173. CONST RTGL_GadFmt& = &H80000022
  174. ' (V38) optional arguments for RTGL_GadFmt
  175. CONST RTGL_GadFmtArgs& = &H80000023
  176. ' (V38) invisible typing - default FALSE
  177. CONST RTGL_Invisible& = &H80000024
  178. ' (V38) window backfill - default TRUE
  179. CONST RTGL_BackFill& = &H80000025
  180. ' (V38) optional text above gadget
  181. CONST RTGL_TextFmt& = &H80000026
  182. ' (V38) optional arguments for RTGS_TextFmt
  183. CONST RTGL_TextFmtArgs& = &H80000027
  184. ' (V38) Center text - default FALSE
  185. CONST RTGL_CenterText& = &H80000064
  186. ' (V38) various flags (see below)
  187. CONST RTGL_Flags& = &H80000016
  188. '** tags specific to rtGetStringA ***
  189. ' suggested width of requester window (in pixels)
  190. CONST RTGS_Width& = &H80000020
  191. ' allow empty string to be accepted - default FALSE
  192. CONST RTGS_AllowEmpty& = &H80000050
  193. ' (V38) string with possible responses - english default " _Ok |_Cancel"
  194. CONST RTGS_GadFmt& = &H80000022
  195. ' (V38) optional arguments for RTGS_GadFmt
  196. CONST RTGS_GadFmtArgs& = &H80000023
  197. ' (V38) invisible typing - default FALSE
  198. CONST RTGS_Invisible& = &H80000024
  199. ' (V38) window backfill - default TRUE
  200. CONST RTGS_BackFill& = &H80000025
  201. ' (V38) optional text above gadget
  202. CONST RTGS_TextFmt& = &H80000026
  203. ' (V38) optional arguments for RTGS_TextFmt
  204. CONST RTGS_TextFmtArgs& = &H80000027
  205. ' (V38) Center text - default FALSE
  206. CONST RTGS_CenterText& = &H80000064
  207. ' (V38) various flags (see below)
  208. CONST RTGS_Flags& = &H80000016
  209. '** tags specific to rtFileRequestA ***
  210. ' various flags (see below)
  211. CONST RTFI_Flags& = &H80000028
  212. ' suggested height of file requester
  213. CONST RTFI_Height& = &H80000029
  214. ' replacement text for 'Ok' gadget (max 6 chars)
  215. CONST RTFI_OkText& = &H8000002A
  216. ' (V38) bring up volume requester, tag data holds flags (see below)
  217. CONST RTFI_VolumeRequest& = &H8000002B
  218. ' (V38) call this hook for every file in the directory
  219. CONST RTFI_FilterFunc& = &H8000002C
  220. ' (V38) allow empty file to be accepted - default FALSE
  221. CONST RTFI_AllowEmpty& = &H8000002D
  222. '** tags specific to rtFontRequestA ***
  223. ' various flags (see below)
  224. CONST RTFO_Flags& = &H80000028
  225. ' suggested height of font requester
  226. CONST RTFO_Height& = &H80000029
  227. ' replacement text for 'Ok' gadget (max 6 chars)
  228. CONST RTFO_OkText& = &H8000002A
  229. ' suggested height of font sample display - default 24
  230. CONST RTFO_SampleHeight& = &H8000003C
  231. ' minimum height of font displayed
  232. CONST RTFO_MinHeight& = &H8000003D
  233. ' maximum height of font displayed
  234. CONST RTFO_MaxHeight& = &H8000003E
  235. ' [(RT_TagBase+63) to (RT_TagBase+66) used below]
  236. ' (V38) call this hook for every font
  237. CONST RTFO_FilterFunc& = &H8000002C
  238. '** (V38) tags for rtScreenModeRequestA ***
  239. ' various flags (see below) 
  240. CONST RTSC_Flags& = &H80000028
  241. ' suggested height of screenmode requester
  242. CONST RTSC_Height& = &H80000029
  243. ' replacement text for 'Ok' gadget (max 6 chars)
  244. CONST RTSC_OkText& = &H8000002A
  245. ' property flags (see also RTSC_PropertyMask)
  246. CONST RTSC_PropertyFlags& = &H8000005A
  247. ' property mask - default all bits in RTSC_PropertyFlags considered
  248. CONST RTSC_PropertyMask& = &H8000005B
  249. ' minimum display width allowed
  250. CONST RTSC_MinWidth& = &H8000005C
  251. ' maximum display width allowed
  252. CONST RTSC_MaxWidth& = &H8000005D
  253. ' minimum display height allowed
  254. CONST RTSC_MinHeight& = &H8000005E
  255. ' maximum display height allowed
  256. CONST RTSC_MaxHeight& = &H8000005F
  257. ' minimum display depth allowed
  258. CONST RTSC_MinDepth& = &H80000060
  259. ' maximum display depth allowed
  260. CONST RTSC_MaxDepth& = &H80000061
  261. ' call this hook for every display mode id
  262. CONST RTSC_FilterFunc& = &H8000002C
  263. '** tags for rtChangeReqAttrA ***
  264. ' file requester - set directory
  265. CONST RTFI_Dir& = &H80000032
  266. ' file requester - set wildcard pattern
  267. CONST RTFI_MatchPat& = &H80000033
  268. ' file requester - add a file or directory to the buffer
  269. CONST RTFI_AddEntry& = &H80000034
  270. ' file requester - remove a file or directory from the buffer
  271. CONST RTFI_RemoveEntry& = &H80000035
  272. ' font requester - set font name of selected font
  273. CONST RTFO_FontName& = &H8000003F
  274. ' font requester - set font size
  275. CONST RTFO_FontHeight& = &H80000040
  276. ' font requester - set font style
  277. CONST RTFO_FontStyle& = &H80000041
  278. ' font requester - set font flags
  279. CONST RTFO_FontFlags& = &H80000042
  280. ' (V38) screenmode requester - get display attributes from screen
  281. CONST RTSC_ModeFromScreen& = &H80000050
  282. ' (V38) screenmode requester - set display mode id (32-bit extended)
  283. CONST RTSC_DisplayID& = &H80000051
  284. ' (V38) screenmode requester - set display width
  285. CONST RTSC_DisplayWidth& = &H80000052
  286. ' (V38) screenmode requester - set display height
  287. CONST RTSC_DisplayHeight& = &H80000053
  288. ' (V38) screenmode requester - set display depth
  289. CONST RTSC_DisplayDepth& = &H80000054
  290. ' (V38) screenmode requester - set overscan type, 0 for regular size
  291. CONST RTSC_OverscanType& = &H80000055
  292. ' (V38) screenmode requester - set autoscroll
  293. CONST RTSC_AutoScroll& = &H80000056
  294. '** tags for rtPaletteRequestA ***
  295. ' initially selected color - default 1
  296. CONST RTPA_Color& = &H80000046
  297. '** tags for rtReqHandlerA ***
  298. '
  299. ' end requester by software control, set tagdata to REQ_CANCEL, REQ_OK or
  300. ' in case of rtEZRequest to the return value
  301. CONST RTRH_EndRequest& = &H8000003C
  302. '** tags for rtAllocRequestA ***
  303. '* no tags defined yet
  304. ' FLAGS **************************
  305. ' RT_ReqPos
  306. CONST REQPOS_POINTER& = 0&
  307. CONST REQPOS_CENTERWIN& = 1&
  308. CONST REQPOS_CENTERSCR& = 2&
  309. CONST REQPOS_TOPLEFTWIN& = 3&
  310. CONST REQPOS_TOPLEFTSCR& = 4&
  311. ' RTRH_EndRequest 
  312. CONST REQ_CANCEL& = 0
  313. CONST REQ_OK& = 1
  314. ' flags for RTFI_Flags and RTFO_Flags  
  315. ' or filereq->Flags and fontreq->Flags 
  316. CONST FREQ_NOBUFFER& = &H4
  317. ' flags for RTFI_Flags or filereq->Flags 
  318. CONST FREQ_MULTISELECT& = &H1
  319. CONST FREQ_SAVE& = &H2
  320. CONST FREQ_NOFILES& = &H8
  321. CONST FREQ_PATGAD& = &H10
  322. CONST FREQ_SELECTDIRS& = &H1000
  323. ' flags for RTFO_Flags or fontreq->Flags
  324. CONST FREQ_FIXEDWIDTH& = &H20
  325. CONST FREQ_COLORFONTS& = &H40
  326. CONST FREQ_CHANGEPALETTE& = &H80
  327. CONST FREQ_LEAVEPALETTE& = &H100
  328. CONST FREQ_SCALE& = &H200
  329. CONST FREQ_STYLE& = &H400
  330. ' (V38) flags for RTSC_Flags or screenmodereq->Flags
  331. CONST SCREQ_SIZEGADS& = &H2000
  332. CONST SCREQ_DEPTHGAD& = &H4000
  333. CONST SCREQ_NONSTDMODES& = &H8000
  334. CONST SCREQ_GUIMODES& = &H10000
  335. CONST SCREQ_AUTOSCROLLGAD& = &H40000
  336. CONST SCREQ_OVERSCANGAD& = &H80000
  337. ' flags FOR RTEZ_Flags OR reqinfo->Flags
  338. CONST EZREQ_NORETURNKEY& = &H1
  339. CONST EZREQ_LAMIGAQUAL& = &H2
  340. CONST EZREQ_CENTERTEXT& = &H4
  341. ' (V38) flags for RTGL_Flags or reqinfo->Flags
  342. CONST GLREQ_CENTERTEXT& = &H4
  343. CONST GLREQ_HIGHLIGHTTEXT& = &H8
  344. ' (V38) flags FOR RTGS_Flags OR reqinfo->Flags *
  345. CONST GSREQ_CENTERTEXT& = &H4
  346. CONST GSREQ_HIGHLIGHTTEXT& = &H8
  347. ' (V38) flags for RTFI_VolumeRequest tag *
  348. CONST VREQ_NOASSIGNS& = &H1
  349. CONST VREQ_NODISKS& = &H2
  350. CONST VREQ_ALLDISKS& = &H4
  351.